package jfinal42.ctrl;

import jfinal42.inter.RoleInterceptor;

import com.jfinal.aop.Clear;
import com.jfinal.core.Controller;

public class UserController extends Controller {
	//
	public void index() {

		super.renderText("Hello world!");
	}

	// 注解
	@Clear(RoleInterceptor.class)
	public void login() {
		// ip:8080/jfinal42/user/login

	}

	// http://ip:port/jfinal42/user/sayHello
	public void sayHello() {
		String u = super.getPara("username");
		super.renderHtml("<script>alert('" + u + "一个大帅哥！');</script>");
	}
}
